<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/taglibs.jsp"%>
	<c:set value="${now.time - param.time}" var="deltaTime"></c:set>
<c:choose>
	<c:when test="${deltaTime lt (1000 * 30)}">
		 20秒前
	</c:when>
	<c:when test="${deltaTime lt (1000 * 40)}">
		 30秒前
	</c:when>
	<c:when test="${deltaTime lt (1000 * 60)}">
		 40秒前
	</c:when>
	<c:when test="${deltaTime lt (1000 * 60 * 2)}">
		 1分钟前
	</c:when>
	<c:when test="${deltaTime lt (1000 * 60 * 3)}">
		 2分钟前
	</c:when>
	<c:when test="${deltaTime lt (1000 * 60 * 4)}">
		 3分钟前
	</c:when>
	<c:when test="${deltaTime lt (1000 * 60 * 5)}">
		 4分钟前
	</c:when>
	<c:when test="${deltaTime lt (1000 * 60 * 8)}">
		 5分钟前
	</c:when>
	<c:when test="${deltaTime lt (1000 * 60 * 10)}">
		 8分钟前
	</c:when>
	<c:when test="${deltaTime lt (1000 * 60 * 20)}">
		 10分钟前
	</c:when>
	<c:when test="${deltaTime lt (1000 * 60 * 30)}">
		 20分钟前
	</c:when>
	<c:when test="${deltaTime lt (1000 * 60 * 40)}">
		 30分钟前
	</c:when>
	<c:when test="${deltaTime lt (1000 * 60 * 50)}">
		 40分钟前
	</c:when>
	<c:when test="${deltaTime lt (1000 * 60 * 60)}">
		 50分钟前
	</c:when>
	<c:when test="${deltaTime lt (1000 * 60 * 60 * 2)}">
		 1小时前
	</c:when>
	<c:when test="${param.year eq now.year && param.month eq now.month && param.date eq now.date}">
		 今天${param.hours}:${param.minutes}
	</c:when>
	<c:when test="${param.year eq now.year && param.month eq now.month &&  now.date - param.date == 1}">
		 昨天${param.hours}:${param.minutes}
	</c:when>
	<c:when test="${param.year eq now.year && param.month eq now.month &&  now.date - param.date == 2}">
		 前天${param.hours}:${param.minutes}
	</c:when>
	<c:when test="${param.year eq now.year}">
		${param.month + 1}月${param.date}日
	</c:when>
	<c:otherwise>
		${param.year + 1900}年${param.month + 1}月
	</c:otherwise>
	
</c:choose>	